package edpool;

public class ConsumerPackage<T> extends ExchangerPackage<T>
{

	public ConsumerPackage(GlobalExchangeStates<T> globalExchangeStates)
	{
		super(PackageTypeEnum.Consumer, globalExchangeStates);
	}
	
	public void clear()
	{
		value = null;
	}

	public ExchangerState<T> getDiffractingStateObject()
	{
		return globalExchangeStates.ConsumerDiffracted;
	}

	public ExchangerState<T> getEliminatingStateObject()
	{
		return globalExchangeStates.ConsumerEliminated;
	}

	public ExchangerState<T> getWaitingStateObject()
	{
		return globalExchangeStates.ConsumerWaiting;
	}

}
